{% extends "base.html" %}
{% block title %}
    学生账号注册
{% endblock %}

{% block style %}

    ul li {
    list-style-type: none;
    }

{% endblock %}

{% block box %}
    <div class="container">

        <form class="form-signin" method="post">
            {% csrf_token %}
            <h2 class="form-signin-heading">学生账号注册</h2>
            学生姓名
            {#            <input type="text" class="form-control" placeholder="请输入您的姓名" required autofocus name="username"#}
            {#                   id="username">#}
            {{ form.username }}
            <span class="text-danger">{{ form.username.errors }}</span>
            <p></p>
            设置密码
            {#            <input type="password1" class="form-control" placeholder="请输入密码" required name="password1">#}
            {{ form.password1 }}
            <span class="text-danger">{{ form.password1.errors }}</span>
            确认密码
            {#            <input type="password2" class="form-control" placeholder="请输入确认密码" required name="password2">#}
            {{ form.password2 }}
            <span class="text-danger">{{ form.password2.errors }}</span>
            {#        <div class="checkbox">#}
            {#          <label>#}
            {#            <input type="checkbox" value="remember-me"> Remember me#}
            {#          </label>#}
            {#        </div>#}
            <p></p>
            <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
            <span style="float: right"><a href="/">去登录</a></span>
        </form>

    </div> <!-- /container -->
{% endblock %}

